<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="master.html" />

<head />

<body>
    <span>Set for all: </span>
    <input id="set_all" />
    <input type="button" value="OK"
        onclick="setAll('rh_', document.getElementById('set_all').value);" />

    <form action="${action}" method="POST">
        <input type="hidden" name="came_from" value="${came_from}" />

        <table>
            <thead>
            <tr>
                <td>Student</td>
                <td>Student agreement</td>
                <td>Real hours</td>
            </tr>
            </thead>

            <tbody>
                <tr py:for="record in records">
                    <td>${record.student.title}</td>
                    <td>${record.studentAgreement.title}</td>
                    <td>
                        <input name="${'rh_%d' % record.id}" value="${str(record.realHours)}" />
                    </td>
                </tr>
            </tbody>
        </table>

        <input type="submit" value="${_('Change')}" />

    </form>

    <span>${ET(tg.back_widget())}</span>
</body>
</html>
